package swimv2.entity;

import java.io.Serializable;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.persistence.*;

@Entity
@Table(name = "Response")
@PrimaryKeyJoinColumn(name="MESSAGE_ID",referencedColumnName="MESSAGE_ID")
public class Response extends Message implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public Response()
	{
		this.isRejected = false;
		this.isChosen = false;
	}
	
	@Column (name = "isRejected")
	private boolean isRejected;
	
	@Column (name = "isChoosen")
	private boolean isChosen;
	
	/**
	 * @return the isRejected
	 */
	public boolean isRejected() {
		return isRejected;
	}

	/**
	 * @param isRejected the isRejected to set
	 */
	public void setRejected(boolean isRejected) {
		this.isRejected = isRejected;
	}

	/**
	 * @return the isChosen
	 */
	public boolean isChosen() {
		return isChosen;
	}

	/**
	 * @param isChosen the isChosen to set
	 */
	public void setChosen(boolean isChosen) {
		this.isChosen = isChosen;
	}
}
